package cn.dankal.flyaudio.contract;

import java.util.List;

import cn.dankal.basiclib.base.BasePresenter;
import cn.dankal.basiclib.base.BaseView;
import cn.dankal.basiclib.pojo.CommentsEntity;
import cn.dankal.basiclib.pojo.ProductEntity;

public interface ProductDetailContract {

    interface Presenter extends BasePresenter<View> {

        void fetchProductDetail(String uuid);

        void favoritesProduct(String productUuid);

        void cancelFavoritesProduct(String productUuid);

        void addShopCar(String productUuid, int count);

        void getEvaluate(String uuid,int page);

        void like(String uuid);

        void unLike(String uuid);
    }


    interface View extends BaseView {

        void handleProductDetailResult(ProductEntity entity);

        void favoritesProductSuccess();

        void cancelFavoritesProductSuccess();

        void addSuccess();

        void evaluateSuccess(List<CommentsEntity> list);


        void likeSuccess();

        void unLikeSuccess();
    }
}
